package com.htfyun.eink.pw.draw;

import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public interface IPWDrawPath {

    @NonNull
    PWPaintConfig getPaintConfig();

    /**
     * @param path        需要绘制的 path
     * @param paint       绘制需要的 paint, 此 paint 已经配置好了.
     * @param outPathRect 绘制后, 返回的 path 的 rect
     */
    void drawPath(@NonNull Path path, @NonNull Paint paint, @Nullable Rect outPathRect);
}
